package utils

import (
	"gitee.com/baal1990/epidemic/global"
	epidemic2 "gitee.com/baal1990/epidemic/service/epidemic"
	"gitee.com/baal1990/epidemic/utils/msgsms"
	"go.uber.org/zap"
)

func NotifyRelatedStaffCheckin(mobileList []string, test bool) {
	var service epidemic2.EpidemicUserService
	var err error
	if !test {
		mobileList = []string{}
		mobileList, err = service.GetAllManagersMobile()
		if err != nil {
			global.GVA_LOG.Error("NoitfyRelatedStaffCheckin fail, ", zap.Error(err))
			return
		}
	}
	msgsms.SendMsg(mobileList, "542a7bcfc14f4f938b2b8a7ee94ce432", "8819022138406", "")
}
